package core.manager.sceneManager.SceneScript
{
    import core.manager.pluginManager.*;
    import core.manager.scriptManager.*;

    public class Scene6Script
    {
        public static function runSceneJustCompleteScript(minY:int) : void
        {
            switch(minY)
            {
                case 5:
                {
                	ScriptManager.getInstance().runScriptByName(ScriptName.LOAD_BACKGROUND_MUSIC, ["http://audio.pavilion.expo.cn/p5006/audio/backgroundmusic/bg5.mp3"]);
                    ScriptManager.getInstance().runScriptByName(ScriptName.ADD_ANIMATE, [11]);
                    break;
                }
                default:
                {
                    ScriptManager.getInstance().runScriptByName(ScriptName.ADD_ANIMATE, [11]);
                    ScriptManager.getInstance().runScriptByName(ScriptName.LOAD_BACKGROUND_MUSIC, ["http://audio.pavilion.expo.cn/p5006/audio/backgroundmusic/bg5.mp3"]);
                    break;
                    break;
                }
            }
            return;
        }// end function

        public static function runSceneInitScript(minY:int) : void
        {
            switch(minY)
            {
                case 5:
                {
                    ScriptManager.getInstance().runScriptByName(ScriptName.CLEAR_YES_CLICK_SCRIPT, []);
                    ScriptManager.getInstance().runScriptByName(ScriptName.ADD_YES_CLICK_SCRIPT, ["showFlv(http://flv.pavilion.expo.cn/p5006/flv/scene_scene/zonghengsihai_yangmengbagui.flv);disposeBackGroundMusic();"]);
                    ScriptManager.getInstance().runScriptByName(ScriptName.SHOW_INQUIRE, [10]);
                    ScriptManager.getInstance().runScriptByName(ScriptName.INIT_ON_FLV_PLAY_COMPLETE_SCRIPT, ["showPluginById(YangMengBaGuiModule);"]);
                    break;
                }
                default:
                {
                    ScriptManager.getInstance().runScriptByName(ScriptName.DISPOSE_BACKGROUND_MUSIC, []);
                    PluginManager.getInstance().showSinglePluginById("YangMengBaGuiModule");
                    break;
                    break;
                }
            }
            return;
        }// end function

    }
}
